package org.csc.admin.config;

import feign.Feign;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;

public class FooConfiguration {

    @Bean
    @Scope("prototype")
    public Feign.Builder feignBuilder() {
        return Feign.builder();
    }


    /**
     * feign取消重试
     *
     * @return
     */
    @Bean
    Retryer feignRetryer() {
        return Retryer.NEVER_RETRY;
    }
}
